package SingleLinkedList;

public class Test {
    public static void main(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        // mySingleLinkedList.addFirst(5);
        // mySingleLinkedList.addFirst(4);
        // mySingleLinkedList.addFirst(3);
        // mySingleLinkedList.addFirst(2);
        // mySingleLinkedList.addFirst(1);
        // mySingleLinkedList.display();
        // System.out.println(mySingleLinkedList.size());


        mySingleLinkedList.addLast(5);
        mySingleLinkedList.addLast(2);
        mySingleLinkedList.addLast(7);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(2);
        mySingleLinkedList.display();
        // mySingleLinkedList.addIndex(0,3);
        // mySingleLinkedList.display();
        // mySingleLinkedList.remove(1);
        // mySingleLinkedList.removeAllKey(1);
        // mySingleLinkedList.clear();
        // mySingleLinkedList.display();

        MySingleLinkedList.ListNode newHead = mySingleLinkedList.partition(3);
        mySingleLinkedList.display2(newHead);


    }
}
